/**
 * fileName:  FruitCategoryEntity.java
 * author:  Lei
 * Company:  Cloudland Studio
 * Createdate:  2014-5-31 上午11:47:39
 *
 * All rights Reserved, Designed By cloudland Copyright(C) 2010-2011
 *   
 * Modification  History:
 *     Date           Author        Version        
 * -------------------------------------------
 * 2014-5-31          Lei            1.0        
 *
 * Why & What is modified:
 * 1.0: 文件创建
 */
package org.cloudland.commercial.masterdata.store.entity;

 /**
 * <pre> 
 * TODO 请充分描述该类提供的作用, 或与其他类会有关联的使用。
 * 使用 java.lang.Object#toString(), 或者 {@link java.lang.Character Character} 等标签
 * </pre>
 * @ClassName  FruitCategoryEntity
 * @author  Lei
 * @version  %I%, %G%
 * @see  
 * @since   JDK1.6
 *
 */
public class CategoryEntity {
	
	/**
	 * id 分类编号
	 */
	private String id;
	
	/**
	 * name 分类名称
	 */
	private String name;
	
	/**
	 * sort 排列顺序
	 */
	private Integer sort = 0; 
	
	/**
	 * parentId 父分类编号
	 */
	private String parentId = new String();

	/**
	 * <pre>
	 * 默认构造函数
	 * </pre>
	 *   
	 */
	public CategoryEntity() {
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * <pre>
	 * 构造函数
	 * </pre>
	 *
	 * @param id 分类编号
	 * @param name 分类名称
	 * @param sort 排列顺序
	 * @param parentId 父分类编号
	 */
	public CategoryEntity(String id, String name, Integer sort, String parentId) {
		this.id = id;
		this.name = name;
		this.sort = sort;
		this.parentId = parentId;
	}

	/**
	 * get id
	 * @return id
	 */
	public String getId() {
		return id;
	}

	/**
	 * set id
	 * @param id the value of id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * get name
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * set name
	 * @param name the value of name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * get sort
	 * @return sort
	 */
	public Integer getSort() {
		return sort;
	}

	/**
	 * set sort
	 * @param sort the value of sort
	 */
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	/**
	 * get parentId
	 * @return parentId
	 */
	public String getParentId() {
		return parentId;
	}

	/**
	 * set parentId
	 * @param parentId the value of parentId
	 */
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	
	/**
	 * @return
	 */
	@Override
	public String toString() {
		StringBuffer buff = new StringBuffer();
		buff.append("Id: ").append(getId()).append(", Name:").append(getName()).append(", Sort: ").append(getSort()).append(", ParentId:").append(getParentId());
		return buff.toString();
	}

}
